<%@page pageEncoding="UTF-8" isELIgnored="false" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<c:set var="path" value="${pageContext.request.contextPath}"/>

<script>
    $(function () {
        pageInit();
    });

    function pageInit() {
        jQuery("#userTable").jqGrid(
            {
                url: "${path}/log/queryAllPage",
                //editurl: "${path}/log/edit",
                datatype: "json",
                mtype: "post",
                rowNum: 10,
                rowList: [10, 20, 30],
                pager: '#userPage',
                sortName: 'optionTime',
                sortOrder: "asc",
                viewrecords: true,  //是否展示总条数
                caption: "用户信息",
                styleUI: "Bootstrap",
                autowidth: true,
                height: "auto",
                colNames: ['Id', '管理员', '操作时间', '操作方法', '操作状态'],
                colModel: [
                    {name: 'id', width: 55, align: "center"},
                    {name: 'adminName', editable: false, width: 90, align: "center"},
                    {name: 'optionTime',width: 55,align: "center"},
                    {name: 'method', width: 55,align: "center"},
                    {name: 'status', width: 55,align: "center"}
                ]
            });
        $("#userTable").jqGrid('navGrid', '#userPage', {edit: false, add: false, del: false});
    }

</script>

<div class="panel panel-info">
    <%--<div class="panel panel-heading">用户信息</div>

    <!-- Nav tabs -->
    <ul class="nav nav-tabs" role="tablist">
        <li role="presentation" class="active"><a href="#home" aria-controls="home" role="tab"
                                                  data-toggle="tab">用户信息</a></li>
    </ul>--%>

    <button class="btn btn-info">
        <a href="${path}/log/export">导出信息</a>
    </button>&emsp;&emsp;&emsp;&emsp;

    <table id="userTable"></table>
    <div id="userPage">
    </div>
</div>
